<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	SettingForm form = (SettingForm)request.getAttribute("command");
	String tab = form.getTab();
%>

<div id="childLayout" class="easyui-layout" data-options="fit:true">
	<div data-options="region:'west',split:true,maxWidth:220,collapsible:true,style:{borderWidth:2},onResize:function(){XF.LAYOUT.resizeWest();}" style="background: #f7f7f9;width:220px;" title=" ">
		 <div class="sidebar">
			<div id="sidebar" class="easyui-accordion" style="width:auto;height:auto;">  
				<div title="用户管理"  style="overflow:auto;padding:10px;">  
					<ul class="site-ul">
						<!-- 
						<li class="site-li">
							<a s="addUser" href="javascript:XF.Setting.addUser()"><span>新建用户</span></a>
						</li> 
						-->
						<li class="site-li">
							<a s="listUser" href="javascript:XF.Setting.listUser()"><span>用户管理</span></a>
						</li>
					</ul>
				</div>
				<div title="角色管理"  style="overflow:auto;padding:10px;">  
					<ul class="site-ul">
						<li class="site-li">
							<a s="addRole" href="javascript:XF.Setting.addRole()"><span>新建角色</span></a>
						</li>
						<li class="site-li">
							<a s="listRole" href="javascript:XF.Setting.listRole()"><span>角色管理</span></a>
						</li>
					</ul> 
				</div>  
					<div title="考勤机管理"  style="overflow:auto;padding:10px;">  
					<ul class="site-ul">
						<li class="site-li">
							<a s="addDevice" href="javascript:XF.Setting.addDevice()"><span>添加设备</span></a>
						</li>
						<li class="site-li">
							<a s="listDevice" href="javascript:XF.Setting.listDevice()"><span>设备管理</span></a>
						</li>
					</ul> 
					</div>
			</div> 
		</div>
	</div>
	<div id="settingCenter" class="settingCenter" data-options="region:'center'" >
	</div>
</div>
<script type="text/javascript">
	$(function(){
		$('#childLayout').layout();
		XF.NAV.activeTab('"<%=tab%>"');
	    $('#sidebar').accordion({
	        animate:true
	    });
	});
</script>
